home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1999 / MacHack 1999.toast / The Hacks / 42 ƒ / StupidWay.h < prev   
Encoding:
Text File  |  1999-06-25  |  970 b   |  30 lines  |  [TEXT/CWIE]

  1. // StupidWay.h
  2. // Handle Life propagation the stupid, but simple way
  3. // Copyright ©1995 Michael D. Crawford.  All Rights Reserved.
  4. // 23 Jun 95 Mike Crawford crawford@scruznet.com
  5. //
  6. // Revision History:
  7. // 12 Jul 95    MDC    New today
  8.  
  9. typedef struct{
  10.     Handle        myDataTic;
  11.     Handle        myDataToc;
  12.     long        height;            // Yes, this is repeated here
  13.     long        width;
  14.     unsigned long *    life_base;
  15.     short        rowbytes;
  16.     Boolean        tic;
  17.     long        color;
  18. }tStupidData, *tStupidPtr, **StupidHand;
  19.  
  20. Boolean PIReadACellPriviate(Handle ThePrivateData,long x, long y);
  21. OSErr PISetOtherCell(Handle ThePrivateData,long x, long y, Boolean state);
  22.  
  23. OSErr PISetTicCell(Handle ThePrivateData,long x, long y);
  24. OSErr PISetTocCell(Handle ThePrivateData,long x, long y);
  25. OSErr PIClearTicCell(Handle ThePrivateData,long x, long y);
  26. OSErr PIClearTocCell(Handle ThePrivateData,long x, long y);
  27.  
  28. Boolean PIReadATicCell(Handle ThePrivateData,long x, long y);
  29. Boolean PIReadATocCell(Handle ThePrivateData,long x, long y);
  30.